<?php
session_start();
include("../public/common.php");
include("../config/connect.php");

$opt = trim(CheckUrlParamNoDie("opt"));
$p = trim(CheckUrlParamNoDie("p"));


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name ="keywords" content="购物兔,购物兔返现网,购物兔省钱浏览器,聚划算返利,返现网,返利网,返利,淘宝网返利,商城返利,京东返利,淘宝网女装返利,淘宝网女鞋打折,淘宝网男装促销,淘宝网包包秒杀,淘宝化妆品赠送"/>
<meta name="Description" content="购物兔是国内最知名的购物省钱浏览器，返现最快，当天内直接到账，返现最安全，100%不漏单；无论您在淘宝网，还是京东、当当等其他商城购物，即使是促销价也能返现，实现折上再打折，真正省钱，是您网络购物省钱的首选！" />
<title>购物兔搜索风云榜-去淘宝网、京东、当当等商城购物，确认收货即可拿现金，赚兔币，换礼品！</title>
<link type="text/css" rel="stylesheet" href="../new/css/topss.css" />
<link type="text/css" rel="stylesheet" href="css/common.css" />
<script language="javascript" src="../js/jquery.min.js"></script>
<script language="javascript" src="../new/js/common.js"></script>
</head>
<body>
<div class="wrap search-home">
    <div class="item head">
        <h1 id="logo_img"><a href="http://www.gouwutu.com"><img title="购物兔，返现就这么简单" alt="购物兔，返现就这么简单" src="http://www.gouwutu.com/new/images/sslogo.gif"></a></h1>
        <div id="m">
            <p id="nv"></p>
            <div id="fm">
                <form action="http://www.gouwutu.com/new/s/" method="get" onsubmit="return Adjust('kw')" target="_blank">
                    <p class="gwt_ss"><input type="text" maxlength="1024" id="kw" name="q" autocomplete="on" onblur="if(this.value==''){this.value='输入您想要的宝贝名称或网址~';this.style.color = '#BABABA';}" onfocus="if(this.value=='输入您想要的宝贝名称或网址~'){this.value='';this.style.color = '#333';} this.select();" value="输入您想要的宝贝名称或网址~"></p>
                    <p class="btn_wr"><input type="submit" onmouseout="" onmousedown="" class="btn" id="su" value=""></p>
                    <input type="hidden" name="id" id="id" value="">
                    <input type="hidden" name="url" id="url" value="">
                </form>
            </div>
            <p class="tsearch-hot">
                <!-- 热门标签 -->
                <span>热门搜索：</span>
                 <a href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('羽绒服'); ?>" target="_blank">羽绒服</a>
                <a href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('棉衣'); ?>" target="_blank">棉衣</a>
                <a class="h" href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('Tmall狂欢节'); ?>" target="_blank">Tmall狂欢节</a>
                <a href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('靴子'); ?>" target="_blank">靴子</a>
                <a href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('呢外套'); ?>" target="_blank">呢外套</a>
                <a href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('大衣'); ?>" target="_blank">大衣</a>
                <a href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('女包'); ?>" target="_blank">女包</a>
                <a href="http://www.gouwutu.com/new/s/?q=<?php echo urlencode('新款风衣'); ?>" target="_blank">新款风衣</a>
                <b class="gr-l"></b>
                <b class="gr-r"></b>
                <!--end-->
            </p>
        </div>
        <div class="date" id="show_date_div"></div>
    </div>
</div>
<div class="wrap">
	<div class="l side-bar">
    	<div class="nav-bar">
       		<ul class="menu">
            	<li class="<?php if($p == "" || !isset($p)) echo 'childSelect'; else echo 'childUnSelect'; ?>"><a href="./index.php">风云榜首页</a></li>
                <li class="<?php if($p == "hot") echo 'childSelect'; else echo 'childUnSelect'; ?>"><a href="index.php?p=hot">热门搜索</a></li>
           	<?php
			$sql = "select dtype from gwt_top group by dtype";
			$result = mysql_query($sql);
			while($result && $row = mysql_fetch_array($result))
			{
				$ddtypp = $row["dtype"];
				if($ddtypp != '热门搜索')
				{
			?>
				<li class="<?php if($p == $row["dtype"]) echo 'childSelect'; else echo 'childUnSelect'; ?>" <?php if($ddtypp == '商城' || $ddtypp == '团购') echo ' style="display:none"'; ?>><a href="index.php?p=<?php echo urlencode($row["dtype"]); ?>"><?php echo $row["dtype"]; ?></a></li>
			<?php
				}
            }
			?>
            </ul>
        </div>
        <div class="end"></div>
    </div>
    <div class="r main-cont">
    <?php
	if($p == "")
		$sql = "select * from gwt_top group by dtype";
	if($p != "")
		$sql = "select * from gwt_top where dtype='$p' group by xtype";
	if($p == "hot")
		$sql = "select * from gwt_top where dtype='热门搜索' group by xtype";
		
		$result = mysql_query($sql);
		while($result && $row = mysql_fetch_array($result))
		{
			$dtype = $row["dtype"];
			$xtype = $row["xtype"];
			
			if($dtype != '商城' && $dtype != '团购'){
	?>
    	<div class="box-spe top10 l dis-rb">
            <h1><?php
				if($p == "" ) echo $dtype;
				if($p != "") echo $xtype;
				?></h1>
            <div class="box">
                <div class="t_list">
                	<table id="tbl_realtimeData">
                    <?php
					if($p == "")
						$sql = "select * from gwt_top where dtype='$dtype' order by num desc limit 10";
					if($p != "")
						$sql = "select * from gwt_top where xtype='$xtype' order by num desc limit 10";
					$result1 = mysql_query($sql);
					$i = 0;
					while($result1 && $row1 = mysql_fetch_array($result1))
					{
						$i++;
					?>
                    	<tr>
                        	<td><span class="title no<?php echo $i; ?>"><a target="_blank" href="../new/s/?q=<?php echo urlencode($row1["skey"]); ?>" title="<?php echo $row1["skey"]; ?>"><?php echo $row1["skey"]; ?></a><?php if($row1["hot"] == 1) echo '<em class="new"></em>'; ?></span></td>
                            <td><a class="detail" target="_blank" href="../new/s/?q=<?php echo urlencode($row1["skey"]); ?>" title="<?php echo $row1["skey"]; ?>"></a></td>
                            <td><span class="clicks"><?php echo $row1["num"]; ?></span></td>
                      	</tr>
                    <?php 
					}
					?>
                	</table>
                    <?php 
						if($p == "")
						{
					?>
             		<div class="w_b"><a class="whole" href="index.php?p=<?php echo urlencode($dtype); ?>"></a></div>
                    <?php
						}
					 ?>
				</div>
			</div>
			<div class="bottom"></div>
        </div>
       <?php 
			}
		}
    ?>
    </div>
</div>
<div style="overflow: hidden; width: 950px; margin:0 auto; padding:20px 0; text-align: center;">
	<p id="lh"><a target="_blank" href="http://www.gouwutu.com/download.php?opt=zip">下载购物兔</a> | <a target="_blank" href="http://www.gouwutu.com/union">加入购物兔联盟</a> | <a target="_blank" href="http://www.gouwutu.com/faq/help_faq1_01.html#n1-1">新手指导</a> | <a target="_blank" href="http://www.tusijie.com">兔丝街</a> | <a target="_blank" href="http://www.gouwutu.com/aboutus.html">关于购物兔</a></p>
    <p id="cp"> Copyright &copy;2008-2011  购物兔返利网  版权所有   <a href="http://www.miibeian.gov.cn" target="_blank">粤ICP备11009208号</a> </p>
</div>
</body>
</html>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-20984072-1");
pageTracker._trackPageview();
} catch(err) {}</script>

<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F7eb75a7b189f4a709dead85bc20eb0dd' type='text/javascript'%3E%3C/script%3E"));
</script>
